using Boo.Lang;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;

[Serializable]
public class adefence : MonoBehaviour
{
	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024find_0024219 : GenericGenerator<WaitForSeconds>
	{
		internal adefence _0024self__0024221;

		public _0024find_0024219(adefence self_)
		{
			_0024self__0024221 = self_;
		}

		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024(_0024self__0024221);
		}
	}

	public float plus;

	private Rigidbody rigi;

	private sparks sparks1;

	public bool @base;

	public bool attackring;

	public bool weightdisk;

	public void Start()
	{
		rigi = transform.root.GetComponent<Rigidbody>();
		sparks1 = (sparks)transform.root.GetComponent(typeof(sparks));
		StartCoroutine(find());
		if (plus == -5f)
		{
			plus = 1f;
		}
		if (plus == 0f)
		{
			plus = 2f;
		}
		if (plus == 5f)
		{
			plus = 3f;
		}
		if (plus == 10f)
		{
			plus = 7f;
		}
	}

	public void coll()
	{
		rigi.AddRelativeTorque(0f, plus * 0.2f, 0f);
	}

	public IEnumerator find()
	{
		return new _0024find_0024219(this).GetEnumerator();
	}

	public void Main()
	{
	}
}
